cmake_minimum_required(VERSION 2.7)
# The project name
project(Thunder)

# Set C++ standard to c++11
set(CMAKE_CXX_STANDARD 11)

include_directories(.)
include_directories(vender/glad/include)
include_directories(vender/glm)
include_directories(vender/GLFW/include)
# Find OpenGL package
find_package(OpenGL REQUIRED)
find_package(GLUT REQUIRED)
include_directories(${OPENGL_INCLUDE_DIRS})
include_directories(${GLUT_INCLUDE_DIRS})



LINK_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/vender/GLFW/lib-mingw-w64)
include_directories(c:/mingw64/include)
LINK_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/vender)

# Add all your .h/.cpp files here (just after "main.cpp",
# separated by a whiespace)
# Note: If you have a directory outside your code file,
# add the directory name, e.g: Graph/Figure.h
add_executable(Thunder main.cpp Flight.cpp Flight.h stb_image.h vender/glad/src/glad.c Game.cpp Gameobject.cpp
        Bullet.cpp Background.cpp Background.h)

# Link OpenGL library to the project.
# Note: This line must be after the "add_executable()"
target_link_libraries(Thunder ${OPENGL_LIBRARY} ${GLUT_LIBRARY} ${CMAKE_CURRENT_BINARY_DIR} glfw3  bass.lib)